package PManagement;

import java.util.ArrayList;
import java.util.Collection;

public class Historys {

	public Collection<String> caseHistory;
	
	
	public Historys(){
		this.caseHistory= new ArrayList<String>();
	}
	
	public Historys(Collection<String> caseHistory){ 
		this.caseHistory=caseHistory;
	}
	public Collection<String> getHistorys() {
		return caseHistory;
	}
	
	public void setHistorys(Collection<String> caseHistory) {
	    this.caseHistory = caseHistory;
	}
	
	public void removeFromHistorys (String history) {
		caseHistory.remove( history);
	}
	
	public void addToHistorys(String  history) {
		caseHistory.add(history);
		
	}
	
	public boolean inHistorys(String History) {
		if (caseHistory.contains(History))
			return true;
		return false;
	}
	
	public boolean notInHistorys(String History) {
		if (!(caseHistory.contains(History)))
			return true;
		return false;
	}
	
	public String toString() {
		return caseHistory+",";
	}

}
